package com.aviator.detective.model.param;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ParamCollection implements  Serializable {

    private String paramCollectionId;
    private String desc;
    private OperationType operationType;
    private List<Param> paramList = new ArrayList<>();

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getParamCollectionId() {
        return paramCollectionId;
    }

    public void setParamCollectionId(String paramCollectionId) {
        this.paramCollectionId = paramCollectionId;
    }

    public OperationType getOperationType() {
        return operationType;
    }

    public void setOperationType(OperationType operationType) {
        this.operationType = operationType;
    }

    public List<Param> getParamList() {
        return Collections.unmodifiableList(paramList);
    }

    public void addParam(Param param) {
        paramList.add(param);
    }

    public void removeParam(Param param){
        paramList.remove(param);
    }

}
